import App from './App'
import iconfont from 'components/iconfont.vue'
import store from 'store'
import request from '@/common/request.js'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
//状态栏高度很多地方用到，故扩展到Vue的原型上。
Vue.prototype.$statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
Vue.prototype.$http = request;
//全局注册iconfont组件,页面中就不用import了
Vue.component("iconfont", iconfont);
Vue.prototype.$store = store;

const app = new Vue({
	store,
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif